import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import api from '@/api'
import mitt from 'mitt'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/utils/rem'
import * as Icons from '@element-plus/icons-vue'
import plugin from '@/components'
const app=createApp(App)
for(let i in Icons){
  app.component(i,Icons[i])
}
app.config.globalProperties.$api=api
app.config.globalProperties.$bus=new mitt()
app.use(store).use(router).use(ElementPlus).use(plugin)
app.mount('#app')

console.log(process.env)
